import {createStore,applyMiddleware} from 'redux'
import createSaga from 'redux-saga'
import rootSaga from './saga'
import reducer from './reducer'

const saga=createSaga();
const store=createStore(reducer,applyMiddleware(saga))
saga.run(rootSaga);
export default store 